//
//  UIView+Extensions.swift
//  微校园
//
//  Created by Gao on 16/12/27.
//  Copyright © 2016年 weSchool. All rights reserved.
//

import UIKit

extension UIView {
    @IBInspectable var cornerRadius : CGFloat{
        get {
            return layer.cornerRadius
        }
        set {
            layer.cornerRadius = newValue
            layer.masksToBounds = (newValue > 0)
        }
    }
}
